<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: Cian
  Date: 2017/3/31
  Time: 16:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加用户</title>
</head>
<style type="text/css">
    body{
        background: url("/resources/bg.jpg") no-repeat;
        background-size: 100% 100%;
        padding: 0;
        margin:0;
    }
</style>
<body>
<div style="width:100%;height: 100%">
    <s:form  method="post" cssStyle="margin-left: 25%;width: 50%;margin-top:10%;text-align: center" modelAttribute="user" enctype="multipart/form-data" action="/add">
        username:<sf:input cssStyle="width: 30%;height:5%;border: none;" path="username"/><br>
        password:<sf:input cssStyle="width: 30%;height:5%;border: none;margin-top: 20px" path="password"/><br>
        &nbsp;&nbsp;&nbsp;gender:<sf:input cssStyle="width: 30%;height:5%;border: none;margin-top: 20px" path="gender"/><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;desc:<sf:input cssStyle="width: 30%;height:5%;border: none;margin-top: 20px" path="desc"/><br>
        选择你的头像:<input style="width: 30%;height:5%;border: none;margin-top: 20px" type="file" name="attachs"><br>
        <%--ttach:<input style="width: 30%;height:5%;border: none;margin-top: 20px" type="file" name="attachs"><br>--%>
        <%--ttach:<input style="width: 30%;height:5%;border: none;margin-top: 20px" type="file" name="attachs"><br>--%>
        <input type="submit" value="添加"
               style="width: 30%;height: 5%;margin-top: 20px;margin-left: 67px;border: none;border-radius: 5px;
                background: rgb(72,170,83)"/>
    </s:form>
</div>
</body>
</html>
